package com.woniu51.search.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author 杨光
 * @date 2022年04月12日 9:52
 */
@Document(indexName = "woniu51cinema",type = "cinema",shards = 3,replicas = 1)
public class CinemaSearch {

    @Field(type=FieldType.Text,analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    private String searchText;

    @Id
    @Field(type=FieldType.Integer,index = false)
    private Integer cinemaId;
    @Field(type=FieldType.Keyword,index = false)
    private String cinemaName;
    @Field(type=FieldType.Keyword,index = false)
    private String cinemaPhone;
    @Field(type=FieldType.Keyword,index = false)
    private String cinemaLocation;
    @Field(type=FieldType.Keyword,index = false)
    private String cinemaImg;




    public String getSearchText() {
        return searchText;
    }

    public void setSearchText(String searchText) {
        this.searchText = searchText;
    }


    public Integer getCinemaId() {
        return cinemaId;
    }

    public void setCinemaId(Integer cinemaId) {
        this.cinemaId = cinemaId;
    }

    public String getCinemaName() {
        return cinemaName;
    }

    public void setCinemaName(String cinemaName) {
        this.cinemaName = cinemaName;
    }

    public String getCinemaPhone() {
        return cinemaPhone;
    }

    public void setCinemaPhone(String cinemaPhone) {
        this.cinemaPhone = cinemaPhone;
    }

    public String getCinemaLocation() {
        return cinemaLocation;
    }

    public void setCinemaLocation(String cinemaLocation) {
        this.cinemaLocation = cinemaLocation;
    }

    public String getCinemaImg() {
        return cinemaImg;
    }

    public void setCinemaImg(String cinemaImg) {
        this.cinemaImg = cinemaImg;
    }
}
